/*
 * @(#)Column.java 2016-7-20 下午2:21:14 smd Copyright 2016 Thuisoft, Inc. All
 * rights reserved. THUNISOFT PROPRIETARY/CONFIDENTIAL. Use is subject to
 * license terms.
 */
package com.happut.cmpt.model;

/**
 * Column
 * @author wfei
 * @time 2016-7-20下午2:21:14
 */
public abstract class Column {
    /**
     * 字段名
     */
    private String name;

    private String nick;

    /**
     * 是否为空
     */
    private Boolean isNull;

    private Boolean isPrimary;

    private int length;

    public Boolean getIsPrimary() {
        return isPrimary;
    }

    public void setIsPrimary(Boolean isPrimary) {
        this.isPrimary = isPrimary;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getIsNull() {
        return isNull;
    }

    public void setIsNull(Boolean isNull) {
        this.isNull = isNull;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public abstract String toColumnSQL(boolean needComma);
}
